//
//  MarkChooseViewController.m
//  掌上海印
//
//  Created by admin on 16/4/17.
//  Copyright © 2016年 handsome. All rights reserved.
//

#import "MarkChooseViewController.h"
#import "Util.h"
#import <UIImageView+WebCache.h>
@interface MarkChooseViewController ()< UIPickerViewDataSource, UIPickerViewDelegate>
@property (weak, nonatomic) IBOutlet UIImageView *userImageView;

- (IBAction)back:(id)sender;
@end

@implementation MarkChooseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tabBarController.tabBar.hidden = YES;
    self.navigationController.navigationBar.hidden = YES;
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    self.userName.text = [[defaults objectForKey:@"dic"] objectForKey:@"userName"];
    self.userType.text = [[defaults objectForKey:@"dic"]objectForKey:@"userType"];
    [self.userImageView sd_setImageWithURL:[[defaults objectForKey:@"dic"]objectForKey:@"userImageView"] placeholderImage:[UIImage imageNamed:@"tab_user"]];
//    self.navigationController.navigationBar.tintColor = [UIColor clearColor];
//    [self.pickView selectedRowInComponent:60];
    // Do any additional setup after loading the view.
}

- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
    return 1;
}

- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
    return 100;
}

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
    return [NSString stringWithFormat:@"%ld",row];
}

- (IBAction)push:(id)sender {
    [Util toastWithView:self.view.window AndText:@"互评成功"];
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)back:(id)sender {
     [self.navigationController popViewControllerAnimated:YES];
}
@end
